package cn.com.lyj6851.modules.activity.service.mapper;

import cn.com.lyj6851.common.mapper.CoreMapper;
import cn.com.lyj6851.modules.activity.domain.YdyStoreSeckill;
import cn.com.lyj6851.modules.product.vo.YdyStoreProductQueryVo;
import org.apache.ibatis.annotations.Select;

public interface YdyStoreSeckillMapper extends CoreMapper<YdyStoreSeckill> {

    @Select("SELECT c.id,c.image,c.price,c.title as storeName,c.is_show as isShow,c.cost," +
            "c.is_postage as isPostage,c.postage,c.sales,c.stock,c.is_del as isDel" +
            " FROM yx_store_seckill c " +
            " WHERE c.id = #{id} and c.is_del = 0 ")
    YdyStoreProductQueryVo seckillInfo(Long id);
}